package com.yixin.hospital.entity.dto.req.workaddress;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("新增工作地点请求体")
@Data
public class WorkAddressAddReqDTO {

    @ApiModelProperty("部门id")
    @NotNull(message = "部门id不能为空")
    private Long deptId;

    @ApiModelProperty("工作地点")
    @NotBlank(message = "工作地点不能为空")
    private String name;
}
